package cn.stylefeng.guns.modular.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName ProxyUserDTO 代理创建分代理的DTO  (Data Transfer Object)数据传输层，主要作用于数据库的查询
 * @Author lzy
 * @Date 2020/1/6 12:18
 * @VERSION 1.0
 **/
@Setter
@Getter
@Builder
public class ProxyUserDTO {
    /**
     * 主键id
     */
    private String userId;
    /**
     * 账号
     */
    private String account;
    /**
     * 密码
     */
    private String password;
    /**
     * 盐
     */
    private String salt;
    /**
     * 状态
     */
    private String status;
    /**
     * 角色Id
     */
    private String roleId;
    /**
     * 名字
     */
    private String name;

    /**
     * 电子邮件
     */
    private String email;
    /**
     * 电话
     */
    private String phone;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("create_time")
    private Date updateTime;
    /**
     * 费率
     */
    private BigDecimal exchangeRate;
    /**
     * 上级代理id
     */
    private Long superiorAgentId;

    @Override
    public String toString() {
        return "ProxyUserDTO{" +
                "userId=" + userId +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", status='" + status + '\'' +
                ", roleId='" + roleId + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", exchangeRate=" + exchangeRate +
                ", superiorAgentId=" + superiorAgentId +
                '}';
    }
}
